package jfuzzyprincepless.zarchive.negotiation.protocols.propositionnetwork;

import jfuzzyprincepless.zarchive.algorithm.structure.ICommandConstruction;
import jfuzzyprincepless.zarchive.algorithm.structure.ifcnstr.INegotiationIfConstruction;
import jfuzzyprincepless.zarchive.negotiation.protocols.INegotiationProtocol__Q_del;
import jfuzzyprincepless.negotiation.INegotiation;
import jfuzzyprincepless.negotiation.INegotiationContext;

public class DefaultExecIfProtocol implements INegotiationProtocol__Q_del {
	@Override
	public INegotiation createNegotiation(
		ICommandConstruction construction,
		INegotiationContext context
	) {
		INegotiationIfConstruction ifConstruction =
			(INegotiationIfConstruction) construction;
		return new ExecuteIfNegotiation(ifConstruction);
	}
}
